add support for multiple urls for route headers. (#276)
authortsteven4 <tsteven4@users.noreply.github.com>
Thu, 20 Dec 2018 16:38:22 +0000 (09:38 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Dec 2018 16:38:22 +0000 (09:38 -0700)
commit49a4123e2643efb0b7abdd444f0a52c05b478519
treec80811b7190fe911a51f122cf5d9fc1e344dcea0
parent2afd295ed7f8aecac0f89f6b02d3975237d1be79
add support for multiple urls for route headers. (#276)

* add support for multiple urls for route headers.

add support in gpx for gpx/rte/link, gpx/rte/url, gpx/rte/urlname.
add support in gpx for gpx/trk/link, gpx/trk/url, gpx/trk/urlname.

Note that the gpx writer can violate the schema when fprint_xml_chain
is used to echo unrecognized elements from input to output.
This is because the gpx 1.0/1.1 schema requires an xsd:sequence of
elements, i.e. the order of the elements is specified, and any
elements output by fprint_xml_chain won't necessarily be in
the correct order with other elements that are specifically
handled in the gpx writer.

By processing additional gpx elements as listed above on read we
prevent them from causing schema violations on write.  However,
other unrecognized elements can still cause schema violations.

* make common link code common in gpx reader.
cst.cc
defs.h
garmin_txt.cc
gdb.cc
gpx.cc
pocketfms_bc.cc
random.cc
reference/pocketfms_bc.gpx
route.cc
waypt.cc